You can save your Expression Design artwork to disk as a XAML (Extensible Application Markup Language) file by clicking Export on the File menu (or press CTRL+SHIFT+X). After you give the file a name and tell Expression Design where to save it in the Export dialog box, select XAML from the Save as Type list, and then click the Save button. The Export XAML dialog box displays. This lets you determine how Expression Design should export the XAML file. The dialog box is broken down into two sections: Document format and Effects . To view or hide a category, click on its name.
You can choose from among three methods of representing your content from the Document Format list:
When the Canvas method is selected, you can choose how you want text blocks to be converted. Choosing Export editable TextBlocks maintains the text as individual, editable characters, even if the appearance of the text may change. Choosing Export flattened paths maintains the look of the text by converting each character to outlines so that they are no longer editable.
When the Resource Dictionary method is selected, two additional options become available:
![]() |
If you have image objects in your Expression Design document, they will be stored in a folder in the same directory as your exported XAML file. |
After making your choices in this dialog box, click Export to start the exporting process.
![]() |
Note that colors in your exported XAML code are based on sRGB and are not color managed. If you are using a custom color monitor profile, the colors you see in Expression Design may be different than those displayed in your final XAML-editing software. |
The Graphics tab lets you see how the exported content will be rendered. It contains various tools and options to pan and zoom the preview image.
You can hide the preview by clicking the Hide button. When the preview is hidden, you can show it again by clicking the Preview button.
If you want to see the source code of the exported XAML file, click the XAML Code tab along the right edge of the preview window. Note that you can copy this code out to the Clipboard by selecting the text you want (or click in the code area and press CTRL+A to select all of it), and then pressing CTRL+C.
Alternately, you can bypass the XAML Export dialog box entirely by copying one or more objects from your document window and pasting them into a XAML-aware application (such as Microsoft Expression Blend). In this case, the XAML code is based on the settings in the Clipboard (XAML) page of the Options dialog box.